package com.example.pythondemo.model;

import lombok.Data;

@Data
public class FileNum {
    private int allNum; //总文件
    private int downNum = 0; //下载文件
    private int falseNum = 0; //失败文件

    public void addDown() {
        downNum = downNum+1;
    }

    public void addFalse(){
        falseNum = falseNum + 1;
    }

    public boolean isOk(){
        return allNum == downNum + falseNum;
    }
}
